package com.example.s05_shop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.s05_shop.pojo.Orders;
import com.example.s05_shop.pojo.OrdersItem;
import com.example.s05_shop.pojo.Product;

import java.util.List;

public interface IOrdersService extends IService<Orders>
{
    public boolean save(Orders o, List<OrdersItem> items);

    /**
     * 查询某个用户的所有订单
     * @param uid
     * @return
     */
    public List<Orders> listByUserId(int uid);
}